-- GENERATED SPELL FOR [Undead Miner] --


function spell0_26891(pUnit, Event) --@Puncture Wound,n/a--
pUnit:FullCastSpellOnTarget(48374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26891', 5000, 1)
end

function spell1_26891(pUnit, Event) --@Throw Lantern,n/a--
pUnit:FullCastSpellOnTarget(52608,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26891', 6303, 1)
end

function Sorts_26891(pUnit, Event)
local choix_sorts_26891 = math.random(0, 1)
if choix_sorts_26891 == 0 then
pUnit:RegisterEvent('spell0_26891', 1, 1)
end
if choix_sorts_26891 == 1 then
pUnit:RegisterEvent('spell1_26891', 1, 1)
end
end

function mob26891_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26891', math.random(1500, 3000), 1)
end

function mob26891_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26891_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26891_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26891, 1, 'mob26891_Action')
RegisterUnitEvent(26891, 2, 'mob26891_Leave')
RegisterUnitEvent(26891, 3, 'mob26891_Kill')
RegisterUnitEvent(26891, 4, 'mob26891_Die')
